import os
from datetime import datetime

headers = {
    'Cookie': 'SINAGLOBAL=9961930639513.99.1723450392802; SCF=AhtSxsExD10AeDjFJhi23xLERjCIhvy1mbvy9LHazbL57RQXLoO9ZzX8oWxSxTIaVctcwuzBr9Ftnoi96rciC7M.; UOR=,,cn.bing.com; ULV=1728375064012:5:1:1:1208456069139.0566.1728375064010:1726900802695; ALF=1737283774; SUB=_2A25KYTvuDeRhGeFH6lAT9y3Fyj-IHXVpHzEmrDV8PUJbkNANLW3EkW1Ne-0koyvVfX5Zm9W1KdsysHyWkPC-jAwM; SUBP=0033WrSXqPxfM725Ws9jqgMF55529P9D9Wh-O4JCC_6Q.WgkPAKTS2q15JpX5KMhUgL.FoM4eKzES0e4eKe2dJLoIp7LxKML1KBLBKnLxKqL1hnLBoMN1K2EeoM01K20; XSRF-TOKEN=0QSifUR2LQD5tuzk9goCKGAD; WBPSESS=1L449Mu5dTPHZgolrJ7uDUZTURFglAKg03ARsBSkIDWLDHiB36tIzUzjcE66TbceQIgrx1zBhCss2yvbjrYmHrDub49E2IxuYtoAyww-1fjFHKvoNEHNT--WA8OX63UatG1s71paCU3xxRh8bjoM-w==',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36'
}


def initGlobalVariable():
    current_time = datetime.now()
    formatted_time = current_time.strftime("%Y-%m-%d_%H-%M-%S")
    articleDataFilePath = r'D:\weibo\spiders\data\articleContent_' + formatted_time + '.csv'
    articleCommentsFilePath = r'D:\weibo\spiders\data\articleComments_' + formatted_time + '.csv'
    articleCategoryFilePath = r'D:\weibo\spiders\data\articleCategory.csv'
    return articleCategoryFilePath, articleDataFilePath, articleCommentsFilePath


if __name__ == '__main__':
    initGlobalVariable()

